/* 报警分析模块的特定样式 */
body {
    background: linear-gradient(130deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    color: var(--primary-text);
}

/* 主容器样式 */
.main-container {
    padding: 20px;
    height: calc(100vh - 64px);
    overflow: auto;
}

/* 选项卡样式 */
.tab-container {
    display: flex;
    background: rgba(11, 42, 96, 0.3);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-item {
    padding: 16px 24px;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    color: var(--primary-text);
    opacity: 0.7;
    transition: all 0.3s ease;
    position: relative;
}

.tab-item:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.tab-item.active {
    opacity: 1;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.05);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-btn);
}

/* 过滤器样式 */
.toolbar {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: rgba(11, 42, 96, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-group {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.filter-group label {
    margin-right: 8px;
    font-weight: 500;
}

.filter-group select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(11, 42, 96, 0.5);
    color: var(--primary-text);
    min-width: 120px;
}

.btn-refresh {
    padding: 8px 16px;
    border-radius: 4px;
    background-color: rgba(19, 137, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    border: 1px solid rgba(19, 137, 255, 0.5);
    font-weight: 500;
    font-size: 14px;
}

.btn-refresh:hover {
    background-color: rgba(19, 137, 255, 0.4);
    transform: translateY(-1px);
}

.btn-refresh i {
    font-size: 16px;
}

/* 报警列表样式 - 与用户管理页面保持一致 */
.alarm-list-container {
    padding: 16px;
    background-color: rgba(11, 42, 96, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 设备表格样式 - 与用户管理页面保持一致 */
.device-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    color: #FFFFFF;
}

.device-table th, 
.device-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.device-table th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    color: #FFFFFF;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.device-table tbody tr {
    transition: background-color 0.2s ease;
}

.device-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.12);
}

.device-table tbody tr:last-child td {
    border-bottom: none;
}

.device-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.device-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

/* 表格中的按钮特殊样式 */
.device-table .btn-view,
.device-table .btn-handle,
.device-table .btn-ignore {
    min-width: auto;
    height: 32px;
    font-size: 14px;
    padding: 0 14px;
    margin-right: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.device-table .btn-view {
    background: rgba(19, 137, 255, 0.2);
    color: #FFFFFF;
    border: 1px solid rgba(19, 137, 255, 0.5);
}

.device-table .btn-view:hover {
    background: rgba(19, 137, 255, 0.4);
    transform: translateY(-1px);
}

.device-table .btn-handle {
    background-color: rgba(52, 199, 89, 0.2);
    color: #FFFFFF;
    border: 1px solid rgba(52, 199, 89, 0.5);
}

.device-table .btn-handle:hover {
    background-color: rgba(52, 199, 89, 0.4);
    transform: translateY(-1px);
}

.device-table .btn-ignore {
    background-color: rgba(142, 142, 147, 0.2);
    color: #FFFFFF;
    border: 1px solid rgba(142, 142, 147, 0.5);
}

.device-table .btn-ignore:hover {
    background-color: rgba(142, 142, 147, 0.4);
    transform: translateY(-1px);
}

/* 报警级别标签 */
.alarm-level {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 40px;
}

.alarm-level.high {
    background-color: rgba(255, 59, 48, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 59, 48, 0.5);
}

.alarm-level.medium {
    background-color: rgba(255, 149, 0, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 149, 0, 0.5);
}

.alarm-level.low {
    background-color: rgba(52, 199, 89, 0.2);
    color: #fff;
    border: 1px solid rgba(52, 199, 89, 0.5);
}

/* 报警状态标签 */
.alarm-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 40px;
}

.alarm-status.active {
    background-color: rgba(255, 59, 48, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 59, 48, 0.5);
}

.alarm-status.handled {
    background-color: rgba(52, 199, 89, 0.2);
    color: #fff;
    border: 1px solid rgba(52, 199, 89, 0.5);
}

.alarm-status.ignored {
    background-color: rgba(142, 142, 147, 0.2);
    color: #fff;
    border: 1px solid rgba(142, 142, 147, 0.5);
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    margin-top: 16px;
}

.pagination-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background-color: var(--primary-btn);
    color: #fff;
    border-color: var(--primary-btn);
}

/* 报警详情样式 */
.alarm-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.detail-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.detail-value {
    font-size: 16px;
    font-weight: 500;
}

/* 空列表状态 */
.empty-list {
    padding: 64px 0;
    text-align: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }
    
    .filter-group select {
        flex-grow: 1;
    }
    
    .btn-refresh {
        width: 100%;
        justify-content: center;
    }
    
    .device-table {
        display: block;
        overflow-x: auto;
    }
    
    .alarm-detail {
        grid-template-columns: 1fr;
    }

    .pagination-container {
        flex-direction: column;
        gap: 10px;
    }

    .pagination-controls {
        width: 100%;
        justify-content: center;
    }
} 